package drds.server.util;

import java.util.concurrent.LinkedTransferQueue;

public class ExecutorUtil {

	public static final Executor create(String name, int size) {
		return create(name, size, true);
	}

	private static final Executor create(String name, int size, boolean isDaemon) {
		NameThreadFactory nameableThreadFactory = new NameThreadFactory(name, isDaemon);
		return new Executor(name, size, new LinkedTransferQueue<Runnable>(), nameableThreadFactory);
	}

}